Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC: Add supoort for multi language #158

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

carloslancha
Copy link

@carloslancha carloslancha commented Mar 25, 2020

What does this do?

Adds support for multi language, by splitting out text into a separate file that can be hot swapped for other languages.

How was it tested?

Unclear

Is there a Github issue this is resolving?

This addresses #81

Did you update the docs in the API? Please link an associated PR if applicable.

Not yet.

Here's a fun image for your troubles

random photo - update me

"name": "LANG-KEY-str",
"full_name": "LANG-KEY-strength",
"desc": [
"LANG-KEY-strength-measures-bodily-power-athletic-training-and-the-extent-to-which-you-can-exert-raw-physical-force",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these things instead be something like LANG-KEY-strength-description and store that as a list instead? A key like what we have right now seems a bit silly.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably make your hash in en.json be a little less ridiculious? Maybe?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these things instead be something like LANG-KEY-strength-description and store that as a list instead? A key like what we have right now seems a bit silly.

Yes, this is totally what should happen. Having such big keys can be problematic on several fronts. The first and obvious one is that if typos are put in there, or on the contrary, fixed, we have to stick with what existed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to keep the values the same type for everything, then the keys can instead be LANG-KEY-strength-description-#, where # is the index.

@bagelbits
Copy link
Collaborator

Hey, @carloslancha are you still working on this or is it on pause now?

@carloslancha
Copy link
Author

hey @bagelbits ! Sorry, I've been through a hard time (illness, work, coronastuff...). I'll take care of this when I have the time, it's being a crazy spring....

@bagelbits
Copy link
Collaborator

@carloslancha It has been. Please! Take all the time you need. There really is no rush. I just wanted to check in with you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants